package com.weixing.mall.provider.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.weixing.mall.provider.model.domain.GoodsConcern;
import com.weixing.mall.provider.model.vo.GoodsConcernVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 商品模块-商品关注 Mapper 接口
 * </p>
 *
 * @author Small
 * @since 2019-11-20
 */
public interface GoodsConcernMapper extends BaseMapper<GoodsConcern> {

    IPage<GoodsConcernVo>  selectByMemberIdByPage(@Param("pg") Page page, Long memberId);

    List<GoodsConcernVo>  selectByMemberId(Long memberId);
    int selectCount(Long  memberId);

    int selectMyStore(Long memberId);

    int selectMyStoreByGoodsIdAndProductId(Long goodsId,Long productId,Long memberId);

    void delByGoodId(Long id);

    void  delByGoodIds(int [] goodIds);
}
